package movie;

public class Torrent implements Comparable<Torrent> {

	private String link;
	private double size;
	private double seeds;
	private String type;

	public Torrent(String link, double size, double seeds, String type) {
		this.link=link;
		this.size=size;
		this.seeds=seeds;
		this.type=type;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public double getSize() {
		return size;
	}

	public void setSize(double size) {
		this.size = size;
	}

	public double getSeeds() {
		return seeds;
	}

	public void setSeeds(int seeds) {
		this.seeds = seeds;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}




	@Override
	public int compareTo(Torrent t) {
		if(this.seeds< t.seeds)
			return 1;
		else if(this.seeds>t.seeds)
			return -1;
		else
		return 0;
	}

}
